<!-- 头部 -->
<include file="Common:header" />
<script>
	function commit(){
		var content = $('#comment_value').val();
		var goodsCode = $('#goodsCode').val();
		if( content == '' ){
			$('#msg-error').html("亲，评论不能为空哦");
		}else{
			//评论提交
			$.getJSON('__URL__/addComment',{content:content,goodsCode:goodsCode},function(json){
				if(json.status==1){
					$('#commentinfo').html(json.data);
				}       
			});
		}
	}

	function focusSearch(){
		var content = $('#msg-placeholder').html();
		if( content == '赶快来评论哦' ){
			 $('#msg-placeholder').html("");
		}
	}

	function blurSearch(){
		var content = $('#comment_value').val();
		if( content == "" ){
			 $('#msg-placeholder').html("赶快来评论哦");
		}
	}

	function Page(page){
		var goodsCode = $('#goodsCode').val();
		//评论查询
			$.getJSON('__URL__/showComment',{p:page,goodsCode:goodsCode},function(json){
				if(json.status==1){
					$('#showcomment').html(json.data);
				}       
			});
	}

	function goodsOprate(id){
		$.getJSON('__URL__/goodsOprate',{id:id},function(json){
			if(json.data=='end'){
				alert('只能评论一次');
				return false;
			}
			if(json.status==1){
				$('#likenum').html(json.data);  
			}       
		});
	}
</script>
<!-- 主体内容 -->
<div class="wrap middle" style="margin-top: 10px">
	<div class="main">
    	<div class="mainLeft">
        	<div class="goodsImg floatleft">
            	<img  width="440" src="__PUBLIC__/Uploads/Goods/440_{$goodsinfo['goods_photo_add']}">
                <div class="addAbum"><i class="bg l"></i><span class="m">放进衣柜</span><i class="bg r"></i></div>
            </div>
            <div class="goodsInfo floatleft">
            	<p class="text">
<a target="_blank" href="http://item.taobao.com/item.htm?id=16521604336" class="c6">{$goodsinfo['goods_name']}</a></p>
				<p class="priceBuy"><a class="price" target="_blank" href="http://item.taobao.com/item.htm?id=16521604336"><i class="bg"></i><b>{$goodsinfo['goods_price']}</b></a><a class="buy red" target="_blank" href="{$goodsinfo['goods_path']}">去购买
<i class="bg"></i></a></p>
				<p class="from"></p>
                <div class="likeShare clearfix"><div class="ilikeBig"><a href="javascript:void(0)" onclick="goodsOprate({$goodsinfo['goods_code']})" class="ilike"><b class="like-txt bg">喜欢&nbsp;</b><b class="like-num"><span id="likenum">{$goodsinfo['goods_like_num']}</span></b><i class="bg"></i></a></div></div>
                
                <div class="goShare clearfix">好东西同分享：</div>
                <div class="shareWrap">
                    <!-- Baidu Button BEGIN -->
                    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
                        <a class="bds_tsina"></a>
                        <a class="bds_tqq"></a>
                        <a class="bds_tsohu"></a>
                        <a class="bds_t163"></a>
                        <a class="bds_renren"></a>
                        <a class="bds_qzone"></a>
                        <span class="bds_more">更多</span>
                    </div>
                    <script type="text/javascript" id="bdshare_js" data="type=tools&amp;mini=1&amp;uid=793613" ></script>
                    <script type="text/javascript" id="bdshell_js"></script>
                    <script type="text/javascript">
                    document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
                    </script>
                    <!-- Baidu Button END -->
                </div>
            </div>
        </div>
        
        <!-- 热门评论begin -->
        <div class="mainLeft marginTop10">
        	<div class="dpTop clearfix"><i>热门评论</i></div>
			<div id="showcomment">
				<div id="commentinfo" class="commentWrap clearfix">
				<volist name="commentInfo" id="vo">
					<div class="i-m-box">
						<a href="" class="i-m-headimg" target="_blank"><img alt="" src="http://wwc.taobaocdn.com/avatar/getAvatar.do?userId=69382388&width=40&height=40&type=sns" /></a>
						<p class="i-m-user c9"><a class="nick" target="_blank" href="">{$vo['user_name']}：</a>{$vo['create_time']}<i class="bg"></i></p>
						<p class="i-m-txt-long c3">{$vo['content']}</p>
					</div>    
				</volist>
				</div>
				<!-- 分页 -->
				<div class="small-page">
					{$pager}
				</div> 
			</div>
        </div>
        <!-- 热门评论end -->
        
        <!-- 我要评论begin -->
        <div class="mainLeft marginTop10">
        	<div class="dpTop clearfix"><i>我要评论</i></div>
            <div class="commentNow clearfix">
            	<div class="dp">
                	<div class="msg-area clearfix">
                    	<div class="head-img"><img class="J_T_N_HeadImg_18884475" alt="" src="http://assets.taobaocdn.com/app/sns/img/default/avatar-30.png"></div>
                        <textarea name="comment_value" id="comment_value" rows="2" onfocus="focusSearch();" onblur="blurSearch()"></textarea>
                        <label class="msg-placeholder" id="msg-placeholder">赶快来评论哦</label>
                        <div class="msg-counter">
                            <em>0</em>
                            <span>/140</span>
                            <span id="fbz">发表中...</span>
                            <span id="msg-error" class="reg"></span>
                        </div>  
						<input type="hidden" id="goodsCode" value="{$goodsinfo['goods_code']}">
                        <div><a class="normal-btn bg" id="fbpl-submit" href="#_" onclick="commit()">发表评论</a></div>  
                    </div>
                </div>      
            </div>        
        </div>
        <!-- 我要评论end -->
    </div>
    
    <div class="mainRight">  
        <div class="hd clearfix">
            <span class="title c3 floatleft">潮流明星</span>
        </div>
        <div class="bd">
			<div class="rows">
				<a href="__APP__/Star/index/starid/{$clstar[0]['id']}"><img src="__PUBLIC__/Uploads/Star/80_{$clstar[0]['photo']}" />
				<a href="__APP__/Star/index/starid/{$clstar[1]['id']}"><img src="__PUBLIC__/Uploads/Star/80_{$clstar[1]['photo']}" /></a>
				<a href="__APP__/Star/index/starid/{$clstar[2]['id']}"><img src="__PUBLIC__/Uploads/Star/80_{$clstar[2]['photo']}" /></a>
			</div>
			<div class="rows">
				<a href="__APP__/Star/index/starid/{$clstar[3]['id']}"><img src="__PUBLIC__/Uploads/Star/80_{$clstar[3]['photo']}" />
				<a href="__APP__/Star/index/starid/{$clstar[4]['id']}"><img src="__PUBLIC__/Uploads/Star/80_{$clstar[4]['photo']}" /></a>
				<a href="__APP__/Star/index/starid/{$clstar[5]['id']}"><img src="__PUBLIC__/Uploads/Star/80_{$clstar[5]['photo']}" /></a>
			</div>
			<div class="rows">
				<a href="__APP__/Star/index/starid/{$clstar[6]['id']}"><img src="__PUBLIC__/Uploads/Star/80_{$clstar[6]['photo']}" />
				<a href="__APP__/Star/index/starid/{$clstar[7]['id']}"><img src="__PUBLIC__/Uploads/Star/80_{$clstar[7]['photo']}" /></a>
				<a href="__APP__/Star/index/starid/{$clstar[8]['id']}"><img src="__PUBLIC__/Uploads/Star/80_{$clstar[8]['photo']}" /></a>
			</div>
        </div>    
        <div class="hd clearfix">
            <span class="title c3 floatleft">此宝贝的潮流元素</span>
        </div>
        <div class="bd">
			<div class="line first-line"><a href="" class="text">中长款</a><a href=""><img src="__PUBLIC__/Images/ruby.jpg" /></a><a href=""><img src="images/ruby.jpg" /></a></div>
			<div class="line"><a href="" class="text">中长款</a><a href=""><img src="images/ruby.jpg" /></a><a href=""><img src="images/ruby.jpg" /></a></div>            
			<div class="line"><a href="" class="text">中长款</a><a href=""><img src="images/ruby.jpg" /></a><a href=""><img src="images/ruby.jpg" /></a></div> 
        </div>      
    </div>    
</div>

<!-- 你可能还喜欢-->
<div class="category_sort_all">
	<div class="sort_list_show floatleft">
		<h1 class="floatleft">你可能还喜欢</h1>
	</div>
</div>

<!-- 瀑布流宝贝 -->
<div class="wrap">
	<div id="WaterContainer" class="container">  
    	<div class="listBox">
        	<div class="listCon white">
            	<div class="bigPic">
            		<a href="" target="_blank"><img src="http://img03.taobaocdn.com/bao/uploaded/i3/T1rmbgXaFxXXXANIk6_061116.jpg_210x1000.jpg"></a>
                    <div class="price"><em>¥&nbsp;</em>139.00</div>
                </div>
                <div class="likeAndComment">
                	<a href="" target="_blank" class="ilike"><b class="bg like-txt">喜欢</b><b class="like-num"><span>198</span></b><i class="bg"></i></a><span class="comment"><a href="" target="_blank" class="bg title">评论</a><a href="" target="_blank" class="nick">20</a></span>
                </div>
                <div class="info clearfix">
                	<div class="userPic"><a href="" target="_blank"><img class="rank" src="http://wwc.taobaocdn.com/avatar/getAvatar.do?userId=51446130&amp;width=30&amp;height=30&amp;type=sns"></a></div>
                    <div class="userDetail"><a href="" target="_blank" class="nick">huqian</a><span class="bg isBought"></span><br><a href="" target="_blank" class="c6">发货很快~宝贝也很好~绝对的好评~下次还会再来哒~</a></div>
                </div>
                <div class="addAbum"><i class="bg l"></i><span class="m">放入衣柜</span><i class="bg r"></i></div>
            </div>
            <div class="bg btm"></div>
        </div> 
        
        <div class="listBox">
        	<div class="listCon white">
            	<div class="bigPic">
            		<a href="" target="_blank"><img src="http://img03.taobaocdn.com/bao/uploaded/i3/T1rmbgXaFxXXXANIk6_061116.jpg_210x1000.jpg"></a>
                    <div class="price"><em>¥&nbsp;</em>139.00</div>
                </div>
                <div class="likeAndComment">
                	<a href="" target="_blank" class="ilike"><b class="bg like-txt">喜欢</b><b class="like-num"><span>198</span></b><i class="bg"></i></a><span class="comment"><a href="" target="_blank" class="bg title">评论</a><a href="" target="_blank" class="nick">20</a></span>
                </div>
                <div class="info clearfix">
                	<div class="userPic"><a href="" target="_blank"><img class="rank" src="http://wwc.taobaocdn.com/avatar/getAvatar.do?userId=51446130&amp;width=30&amp;height=30&amp;type=sns"></a></div>
                    <div class="userDetail"><a href="" target="_blank" class="nick">huqian</a><span class="bg isBought"></span><br><a href="" target="_blank" class="c6">发货很快~宝贝也很好~绝对的好评~下次还会再来哒~</a></div>
                </div>
                <div class="addAbum"><i class="bg l"></i><span class="m">放入衣柜</span><i class="bg r"></i></div>
            </div>
            <div class="bg btm"></div>
        </div>
        
        <div class="listBox">
        	<div class="listCon white">
            	<div class="bigPic">
            		<a href="" target="_blank"><img src="http://img03.taobaocdn.com/bao/uploaded/i3/T1rmbgXaFxXXXANIk6_061116.jpg_210x1000.jpg"></a>
                    <div class="price"><em>¥&nbsp;</em>139.00</div>
                </div>
                <div class="likeAndComment">
                	<a href="" target="_blank" class="ilike"><b class="bg like-txt">喜欢</b><b class="like-num"><span>198</span></b><i class="bg"></i></a><span class="comment"><a href="" target="_blank" class="bg title">评论</a><a href="" target="_blank" class="nick">20</a></span>
                </div>
                <div class="info clearfix">
                	<div class="userPic"><a href="" target="_blank"><img class="rank" src="http://wwc.taobaocdn.com/avatar/getAvatar.do?userId=51446130&amp;width=30&amp;height=30&amp;type=sns"></a></div>
                    <div class="userDetail"><a href="" target="_blank" class="nick">huqian</a><span class="bg isBought"></span><br><a href="" target="_blank" class="c6">发货很快~宝贝也很好~绝对的好评~下次还会再来哒~</a></div>
                </div>
                <div class="addAbum"><i class="bg l"></i><span class="m">放入衣柜</span><i class="bg r"></i></div>
            </div>
            <div class="bg btm"></div>
        </div>
        
        <div class="listBox">
        	<div class="listCon white">
            	<div class="bigPic">
            		<a href="" target="_blank"><img src="http://img03.taobaocdn.com/bao/uploaded/i3/T1rmbgXaFxXXXANIk6_061116.jpg_210x1000.jpg"></a>
                    <div class="price"><em>¥&nbsp;</em>139.00</div>
                </div>
                <div class="likeAndComment">
                	<a href="" target="_blank" class="ilike"><b class="bg like-txt">喜欢</b><b class="like-num"><span>198</span></b><i class="bg"></i></a><span class="comment"><a href="" target="_blank" class="bg title">评论</a><a href="" target="_blank" class="nick">20</a></span>
                </div>
                <div class="info clearfix">
                	<div class="userPic"><a href="" target="_blank"><img class="rank" src="http://wwc.taobaocdn.com/avatar/getAvatar.do?userId=51446130&amp;width=30&amp;height=30&amp;type=sns"></a></div>
                    <div class="userDetail"><a href="" target="_blank" class="nick">huqian</a><span class="bg isBought"></span><br><a href="" target="_blank" class="c6">发货很快~宝贝也很好~绝对的好评~下次还会再来哒~</a></div>
                </div>
                <div class="addAbum"><i class="bg l"></i><span class="m">放入衣柜</span><i class="bg r"></i></div>
            </div>
            <div class="bg btm"></div>
        </div>
        
        <div class="listBox">
        	<div class="listCon white">
            	<div class="bigPic">
            		<a href="" target="_blank"><img src="http://img03.taobaocdn.com/bao/uploaded/i3/T1rmbgXaFxXXXANIk6_061116.jpg_210x1000.jpg"></a>
                    <div class="price"><em>¥&nbsp;</em>139.00</div>
                </div>
                <div class="likeAndComment">
                	<a href="" target="_blank" class="ilike"><b class="bg like-txt">喜欢</b><b class="like-num"><span>198</span></b><i class="bg"></i></a><span class="comment"><a href="" target="_blank" class="bg title">评论</a><a href="" target="_blank" class="nick">20</a></span>
                </div>
                <div class="info clearfix">
                	<div class="userPic"><a href="" target="_blank"><img class="rank" src="http://wwc.taobaocdn.com/avatar/getAvatar.do?userId=51446130&amp;width=30&amp;height=30&amp;type=sns"></a></div>
                    <div class="userDetail"><a href="" target="_blank" class="nick">huqian</a><span class="bg isBought"></span><br><a href="" target="_blank" class="c6">发货很快~宝贝也很好~绝对的好评~下次还会再来哒~</a></div>
                </div>
                <div class="addAbum"><i class="bg l"></i><span class="m">放入衣柜</span><i class="bg r"></i></div>
            </div>
            <div class="bg btm"></div>
        </div>
        
    </div>
</div>

<!-- 分页 -->
<div id="page">
	<a href="" data-page="1" class="pre-ok"><span>上一页</span></a>
    <span class="page-start"><span>上一页</span></span>
    <span class="page-cur">1</span>
    <a href="" data-page="2">2</a>
    <a href="" data-page="3">3</a>
    <span class="page-next"><span>下一页</span></span>
    <a href="" data-page="2" class="next-ok"><span>下一页</span></a>
</div>

<include file="Common:footer" />
